<template>
  <div class="layout">
    <div class="table-layout">
      <div class="table-header">
        <el-row>
          <el-form ref="queryForm" :inline="true" :model="queryParams" class="demo-form-inline">
            <!-- <el-form-item label="案件类型" prop="c1">
              <el-select v-model="queryParams.c1" placeholder="请选择">
                <el-option label="类型一" :value="1" />
                <el-option label="类型二" :value="2" />
              </el-select>
            </el-form-item> -->
            <el-form-item label="考核标题" prop="c1">
              <el-input v-model="queryParams.c1" placeholder="请输入" clearable />
            </el-form-item>
            <!-- <el-form-item label="立案时间" prop="c3">
              <el-date-picker v-model="queryParams.c3" type="date" placeholder="选择日期" />
            </el-form-item>
            <el-form-item label="受理时间" prop="c4">
              <el-date-picker v-model="queryParams.c4" type="date" placeholder="选择日期" />
            </el-form-item>
            <el-form-item label="审结时间" prop="c5">
              <el-date-picker v-model="queryParams.c5" type="date" placeholder="选择日期" />
            </el-form-item> -->
            <el-form-item>
              <el-button type="primary" icon="el-icon-search" @click="searchHandle">查询</el-button>
              <el-button icon="el-icon-refresh" size="small" @click="resetQuery">重置</el-button>
            </el-form-item>
          </el-form>
        </el-row>
      </div>
      <div class="table-body">
        <el-table :data="tableData" style="width: 100%" height="100%" stripe>
          <el-table-column align="center" prop="c1" label="考核标题" />
          <el-table-column align="center" prop="c2" label="考核月份" />
          <el-table-column align="center" prop="c3" label="考评人" />
          <el-table-column align="center" prop="c4" label="综合得分" />
          <el-table-column align="center" prop="c5" label="等级" />
          <el-table-column align="center" prop="c6" label="部门" />
          <el-table-column align="center" prop="c7" label="考核状态" />
          <el-table-column align="center" prop="c8" label="考核时间" />
           <el-table-column align="center" label="操作">
            <template slot-scope="scope">
              <el-link type="primary" class="ml-20">详情</el-link>
            </template>
          </el-table-column>

        </el-table>
      </div>
      <div class="table-footer">
        <pagination
          background
          layout="total, sizes, prev, pager, next, jumper"
          :total="total"
          :page.sync="pageParams.pageNum"
          :limit.sync="pageParams.pageSize"
          @pagination="getList"
        />
      </div>
    </div>
  </div></template>

<script>
import page_common from '@/views/mixins/page_common.js'
export default {
  name: 'Todo',
  mixins: [page_common],
  data() {
    return {
      queryParams: { c1: '' },
      tableData: []
    }
  },
  created() {
    this.searchHandle()
  },
  methods: {
    getList() {
      this.tableData = [
        {
          c1: '第一季度绩效评估',
          c2: '2023-03',
          c3: '张检察长',
          c4: '92',
          c5: '优秀',
          c6: '公安机关',
          c7: '已完成',
          c8: '2023-04-05',
        },
        {
          c1: '第一季度绩效评估',
          c2: '2023-03',
          c3: '李主任',
          c4: '85',
          c5: '良好',
          c6: '侦协办',
          c7: '已完成',
          c8: '2023-04-06',
        },
        {
          c1: '第一季度绩效评估',
          c2: '2023-03',
          c3: '赵副检察长',
          c4: '78',
          c5: '合格',
          c6: '公安机关',
          c7: '已完成',
          c8: '2023-04-07',
        },
        {
          c1: '第二季度绩效评估',
          c2: '2023-06',
          c3: '张检察长',
          c4: '92',
          c5: '优秀',
          c6: '公安机关',
          c7: '已完成',
          c8: '2023-06-05',
        },
        {
          c1: '第二季度绩效评估',
          c2: '2023-06',
          c3: '李主任',
          c4: '90',
          c5: '优秀',
          c6: '侦协办',
          c7: '已完成',
          c8: '2023-06-05',
        },
        {
          c1: '第二季度绩效评估',
          c2: '2023-06',
          c3: '赵副检察长',
          c4: '89',
          c5: '良好',
          c6: '检察院',
          c7: '已完成',
          c8: '2024-06-08',
        }
      ]
    }

  }
}
</script>

<style scoped lang='scss'>

</style>
